﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="inStorageorder.aspx.cs" Inherits="Admin_shop_inStorageorder" %>

<%@ Register Src="~/Admin/Banner.ascx" TagName="TogoBanner" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/Admin/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register TagPrefix="epc" Namespace="Hangjing.Control" Assembly="Hangjing.Control" %>
<%@ Register Src="~/Admin/Adleft.ascx" TagName="togoleft" TagPrefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>物料入库管理-<%= WebUtility.GetMyName()%></title>
    <link href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../css/menu.css" rel="stylesheet" type="text/css" />
    <link href="../css/boxes.css" rel="stylesheet" type="text/css" />
    <link href="../css/divDialog.css" rel="stylesheet" type="text/css" />
    <link href="../../javascript/jbox/Skins/jbox.css" rel="stylesheet" />
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="../css/iestyles.css" media="all" />
    <![endif]-->
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/below_ie7.css" media="all" />
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="../css/ie7.css" media="all" />
    <![endif]-->

    <script type="text/javascript" src="../javascript/DatePicker/WdatePicker.js"></script>

    <script src="../javascript/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../javascript/Common.js?v=1515" type="text/javascript"></script>

    <script src="../javascript/ShowDivDialog.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        $(document).ready(function () { init(); });

        var Table;
        function init() {
            Table = new CheckTable("grid_table");
            $(".grid_data tr").mouseover(function () { $(this).addClass("on-mouse"); }).mouseout(function () { $(this).removeClass("on-mouse"); });
            $(".grid_data tr:even").addClass("even pointer");
            $("#loading-mask").hide();

        }

        function Del() {
            var nums = Table.GetChecks();
            if (nums == undefined || nums.length == 0) {
                alert("请选择要删除的订单!");
                return false;
            }
            document.getElementById("hdDels").value = ArrayToString(nums);
            return DelConfirm();
        }

        function op_chenck() {
            var nums = Table.GetChecks();
            if (nums == undefined || nums.length == 0) {
                alert("请选择要操作的订单!");
                return false;
            }
            document.getElementById("hdDels").value = ArrayToString(nums);
            return true;
        }


        function Dy() {
            var nums = Table.GetChecks();
            document.getElementById("hdDels").value = ArrayToString(nums);

        }
    </script>

    <style type="text/css">
        .orderhistory-tishi {
            -moz-background-clip: border;
            -moz-background-origin: padding;
            -moz-background-size: auto auto;
            background-attachment: scroll;
            background-color: #FFF5CE;
            background-image: none;
            background-position: 0 0;
            background-repeat: repeat;
            border-top-color: #FFE16A;
            border-top-style: solid;
            border-top-width: 1px;
            margin-bottom: 10px;
            padding-bottom: 10px;
            padding-left: 8px;
            padding-top: 10px;
            width: 99%;
        }

        .btnew {
            _padding-top: 3px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <!--加载中显示的div-->
        <div id="loading-mask">
            <p class="loader" id="loading_mask_loader">
                <img src="../images/ajax-loader-tr.gif" alt="加载中..." /><br />
                请等待...
            </p>
        </div>
        <asp:HiddenField ID="hfflag" runat="server" />
        <asp:HiddenField ID="hdDels" runat="server" />
        <epc:Hint ID="Hint1" runat="server" HintImageUrl="../images/Control" />
        <div class="wrapper">
            <!--banner start-->
            <uc1:TogoBanner runat="server" ID="Banner" />
            <!--banner end-->
            <!--center start-->
            <div class="middle" id="anchor-content">
                <div id="page:main-container">
                    <div class="columns ">
                        <div class="side-col" id="page:left">
                            <uc4:togoleft ID="togoleft1" runat="server" />
                        </div>

                        <div class="main-col" id="content">
                            <div class="main-col-inner">
                                <div id="divMessages">
                                </div>
                                <fieldset class="AdminSearchform">
                                    <legend>查询条件 </legend>
                                    <table border="0" cellpadding="0" cellspacing="0" style="margin-left: 10px; float: left"
                                        class="condition_table">
                                        <tr>
                                            <td align="right">
                                                <span style="width: 160px;">订单编号：</span>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tborderid" runat="server" CssClass="j_text" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <span style="width: 160px;">备注：</span>
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="tbOrderAttach" CssClass="j_text" Width="" />
                                            </td>
                                        </tr>


                                    </table>




                                    <table border="0" cellpadding="0" cellspacing="0" style="margin-left: 10px; float: left"
                                        class="condition_table">


                                        <tr>
                                            <td align="right">
                                                <span class="span12" style="width: 160px;">时间：</span>
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" CssClass="inputclass" ID="tbStartTime" onfocus="WdatePicker({readOnly:true})"
                                                    Width="75"></asp:TextBox>
                                                <asp:Label runat="server" ID="lbTemp" Text="至"></asp:Label>
                                                <asp:TextBox runat="server" ID="tbEndTime" CssClass="inputclass" onfocus="WdatePicker({readOnly:true})"
                                                    Width="75"></asp:TextBox>
                                            </td>
                                        </tr>





                                        <tr>
                                            <td align="right">
                                                <span class="span12" style="width: 160px;">城市：</span>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="DDLArea" runat="server" Width="100" AppendDataBoundItems="true"
                                                    class="j_select">
                                                    <asp:ListItem Value="0">所有城市</asp:ListItem>
                                                </asp:DropDownList>


                                                <span class="span12" style="width: 160px;">处理人：</span>

                                                <asp:TextBox ID="tbOrderAddress" runat="server" CssClass="j_text" Width="160px" />


                                                <asp:Button runat="server" ID="btSearch" class="form-button" Text="搜索" OnClick="btSearch_Click" />

                                                <asp:Button runat="server" ID="Button1" class="form-button" Text="入库" OnClientClick="gourl('inStorage.aspx');return false;" />

                                            </td>
                                        </tr>

                                    </table>



                                </fieldset>



                                <asp:ScriptManager ID="ScriptManager1" runat="server">
                                </asp:ScriptManager>



                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">

                                    <ContentTemplate>
                                        <div class="scott">
                                            <webdiyer:AspNetPager CssClass="anpager" ID="AspNetPager1" runat="server" Width="100%"
                                                CustomInfoHTML="共有记录 <font>%RecordCount%</font> 条 当前为 <font>%CurrentPageIndex%</font>/<font>%PageCount%</font> 页"
                                                HorizontalAlign="Left" ShowCustomInfoSection="Left" CustomInfoTextAlign="Center"
                                                CustomInfoSectionWidth="28%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox"
                                                TextBeforePageIndexBox="转到 " PageIndexBoxClass="flattext" ShowPageIndex="True"
                                                PageSize="20" SubmitButtonClass="flatbutton" SubmitButtonText=" GO " TextAfterPageIndexBox=" 页 " AlwaysShow="true"
                                                Wrap="False" OnPageChanged="AspNetPager1_PageChanged">
                                            </webdiyer:AspNetPager>
                                        </div>
                                        <div id="sales_order_grid_massaction" style="clear: both;">
                                        </div>
                                        <div class="grid">
                                            <div class="hor-scroll">
                                                <table class="data" cellspacing="0" id="grid_table">



                                                    <thead>
                                                        <tr class="headings">
                                                            <th style="width: 5%">
                                                                <span class="nobr"><a href="#" class="not-sort"></a></span>
                                                            </th>
                                                              <th style="width:8%">
                                                                <span class="nobr"><a href="#" class="not-sort"><span class="sort-title">城市</span></a></span>
                                                            </th>
                                                            <th style="width: 5%">
                                                                <span class="nobr"><a href="#" class="not-sort"><span class="sort-title">单号</span></a></span>
                                                            </th>
                                                            <th style="width: 10%">
                                                                <span class="nobr"><a href="#" name="created_at" class="not-sort"><span class="sort-title">时间</span></a></span>
                                                            </th>
                                                            <th style="width: 8%">
                                                                <span class="nobr"><a href="#" class="not-sort"><span class="sort-title">制单人</span></a></span>
                                                            </th>
                                                            <th>
                                                                <span class="nobr"><a href="#" class="not-sort"><span class="sort-title">备注</span></a></span>
                                                            </th>





                                                            <th class="no-link last" style="width: 10%">
                                                                <span class="nobr last">操作</span>
                                                            </th>
                                                        </tr>
                                                    </thead>
                                                    <tbody class="grid_data">
                                                        <asp:Repeater ID="rtpOrderlist" runat="server">
                                                            <ItemTemplate>
                                                                <tr class="pointer" title="">
                                                                    <td class="">
                                                                        <input name="" id="_inut" value="<%# Eval("Id")%>" class="massaction-checkbox"
                                                                            type="checkbox">
                                                                    </td>
                                                                    <td class="">

                                                                        <%#Eval("cityname")%>
                                                                    </td>
                                                                    <td class="">

                                                                        <%#Eval("Id")%>
                                                                    </td>


                                                                    <td class="">
                                                                        <%#Eval("addtime") %>
                                                                    </td>
                                                                    <td class="">
                                                                        <%#Eval("adminname").ToString()%>
                                                                    </td>
                                                                    <td class="">
                                                                        <%#Eval("sremark") %>
                                                                    </td>



                                                                    <td class=" last">
                                                                        <a href='inStorage.aspx?id=<%#Eval("Id") %>'>查看</a> &nbsp;
                                                                  
                                                                    </td>
                                                                </tr>


                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                        <div class="scott">
                                            <webdiyer:AspNetPager runat="server" ID="AspNetPager2" CloneFrom="AspNetPager1">
                                            </webdiyer:AspNetPager>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>

                    </div>
                </div>
                <!--foot start-->
                <uc2:Foot runat="server" ID="FootUC" />
                <!--foot end-->
            </div>
        </div>
    </form>
</body>
</html>
<script src="../../javascript/jbox/jquery.jBox-2.3.min.js"></script>

